package create.factory_abstract.factory;

import create.factory_abstract.product.BenzCar;
import create.factory_abstract.product.BenzSportCar;
import create.factory_abstract.product.TeslaCar;
import create.factory_abstract.product.TeslaSportCar;

/**
 * @author lzp
 * @Date:2023/2/23
 * @description: 具体的跑车工厂
 */
public class SportFactory implements CarFactory {

	@Override
	public BenzCar getBenzCar() {
		return new BenzSportCar();
	}

	@Override
	public TeslaCar getTeslaCar() {
		return new TeslaSportCar();
	}
}
